package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2024-03-04
 * Time: 20:54
 */
public class Demo2 {
    public static void main(String[] args) {
        Thread t = new Thread(){
            public void  run() {
                while (true) {
                    System.out.println("hello thread");
                }
            }
        };
        t.start();
        while (true) {
            System.out.println("hello main");
        }
    }
}
